# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test06
# Description:  例10.6
# Author:       ASUS
# Date:         2019/3/19
#-------------------------------------------------------------------------------


class Rectangle:
    def __init__(self):
        self.left = 0
        self.top = 0

    def setPosition(self,postion):
        self.left,self.top = postion

    def getPosition(self):
        return self.left,self.top

r = Rectangle()
r.left = 10
r.top = 20
print("left",'=',r.left)
print('top','=',r.top)
r.setPosition((30,50))
print('position','=',r.getPosition())




